#ifndef __SINGLE_SOCKET_H__
#define __SINGLE_SOCKET_H__

#include "../Common/Socket.h"
#include <string>

//Singleton del socket
class singleSocket: public Socket{
private:
	static singleSocket* instancia;
	static std::string ip;
	static int port;
public:
	static singleSocket* getInstance();
	static void eliminar();
	static bool isInstance();
	int conectar(const std::string&, int);
	int conectar();
protected:
	singleSocket();
	~singleSocket();
	singleSocket(const singleSocket&);
	void operator=(const singleSocket&);
};

#endif // __SINGLE_SOCKET_H__
